package com.reggie.service;

import com.reggie.pojo.ShoppingCart;
import jakarta.servlet.http.HttpServletRequest;

import java.util.List;

public interface ShoppingCartService {
    void add(ShoppingCart shoppingCart);
    List<ShoppingCart> selectAll(HttpServletRequest request);

    Boolean subShoppingCart(ShoppingCart shoppingCart);

    Boolean deleteAll();

    ShoppingCart selectById(Long id);

    List<ShoppingCart> selectByUserId(Long id);

    int deleteByUserId(Long id);
}
